package com.wxs.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.wxs.common.pojo.User;

/**
 * 用户管理
 * 
 * @author zhucw
 *
 */
@Mapper
public interface UserMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	List<User> selectAllUser();

	User selectByName(String name);

	List<User> listByRoleGroupId(Integer roleGroupId);

	List<User> list(@Param("name") String name, @Param("enabled") Boolean enabled);
}